const serviceList = [
  {
    path: '/project-order-center',
    component: 'Layout',
    redirect: '/order-center',
    name: 'ProjectOrderCenter',
    meta: {
      title: '项目订单中心',
      icon: 'ProjectOrderCenter'
    },
    children: [
      {
        path: '/order-center',
        component: '/project-order-center/order-center',
        name: 'OrderCenter',
        meta: { title: '项目订单中心', icon: 'ProjectOrderCenter', barFlag: true },
      },
    ]
  },
  {
    path: '/project-order-management',
    component: 'Layout',
    redirect: '/project-order-details',
    name: 'ProjectOrderManagement',
    meta: {
      title: '执行单管理',
      icon: 'executiveOrderManagement'
    },
    children: [
      {
        path: '/project-order-details',
        component: '/project-order-management/project-order-details',
        name: 'ProjectOrderDetails',
        meta: { title: '订单详情', icon: 'orderDetails', barFlag: true },
      },{
        path: '/resource-allocation',
        component: '/project-order-management/resource-allocation',
        name: 'ResourceAllocation',
        meta: { title: '农机设备配置', icon: 'SystemSubjectBinding', barFlag: true },
      }, {
        path: '/work-order-management',
        component: '/project-order-management/work-order-management',
        name: 'WorkOrderManagement',
        meta: { title: '工单管理', icon: 'workOrderManagement', barFlag: true },
      }, {
        path: '/project-schedule-management',
        component: '/project-order-management/project-schedule-management',
        name: 'ProjectScheduleManagement',
        meta: { title: '进度管理', icon: 'scheduleManagement', barFlag: true },
      }, {
        path: '/end-user-settlement',
        component: '/project-order-management/end-user-settlement',
        name: 'EndUserSettlement',
        meta: { title: '结算管理', icon: 'endUserSettlement', barFlag: true },
      },  {
        path: '/abnormal-order-processing',
        component: '/project-order-management/abnormal-order-processing',
        name: 'AbnormalOrderProcessing',
        meta: { title: '异常订单申报', icon: 'AbnormalOrderManagement', barFlag: true },
      },
    ]
  },
  {
    path: '/service-reservation-management',
    component: 'Layout',
    redirect: '/reservation-management',
    name: 'ServiceReservationManagement',
    meta: {
      title: '服务预约管理',
      icon: 'ServiceReservationManagement'
    },
    children: [
      {
        path: '/reservation-management',
        component: '/service-reservation-management/reservation-management',
        name: 'ReservationManagement',
        meta: { title: '服务预约管理', icon: 'ServiceReservationManagement', barFlag: true },
      },
    ]
  },
  {
    path: '/service-project-management',
    component: 'Layout',
    redirect: '/order-center',
    name: 'ServiceProjectManagement',
    meta: {
      title: '服务项目管理',
      icon: 'ServiceProjectManagement'
    },
    children: [
      {
        path: '/service-project-apply',
        component: '/service-project-management/service-project-apply',
        name: 'ServiceProjectApply',
        meta: {
          title: '服务项目开通申请',
          icon: 'ServiceProjectManagement',
          barFlag: true
        }
      },
      // {
      //   path: '/service-project-price',
      //   component: '/service-project-management/service-project-price',
      //   name: 'ServiceProjectPrice',
      //   meta: {
      //     title: '价目表管理',
      //     icon: 'ServiceProjectPrice',
      //     barFlag: true
      //   }
      // }
    ]
  },
  {
    path: '/consultation-feedback',
    component: 'Layout',
    redirect: '/sale-consultation',
    name: 'ConsultationFeedback',
    meta: {
      title: '咨询反馈',
      icon: 'UserConsultation'
    },
    children: [
      {
        path: '/sale-consultation',
        component: '/consultation-feedback/sale-consultation',
        name: 'SaleConsultation',
        meta: { title: '售后咨询', icon: 'UserConsultation', barFlag: true },
      },
    ]
  },
  {
    path: '/system-management',
    component: 'Layout',
    redirect: '/system-user',
    name: 'SystemManagement',
    meta: {
      title: '系统管理',
      icon: 'SystemManagement'
    },
    children: [
      {
        path: '/system-personal-center',
        component: '/system-management/system-personal-center',
        name: 'SystemPersonalCenter',
        meta: { title: '基本信息管理', barFlag: true, icon: 'SystemPersonalCenter' }
      },
      {
        path: '/system-user-management',
        component: '/system-management/system-user/system-user-management',
        name: 'SystemUserManagement',
        meta: { title: '用户管理', barFlag: true, icon: 'SystemUserManagement' }
      },
      {
        path: '/role-management',
        component: '/system-management/system-user/role-management',
        name: 'RoleManagement',
        meta: { title: '角色管理', barFlag: true, icon: 'RoleManagement' }
      },
      {
        path: '/sytem-subject-binding',
        component: '/system-management/sytem-subject-binding',
        name: 'SystemSubjectBinding',
        meta: { title: '主体绑定', barFlag: true, icon: 'SystemSubjectBinding' }
      },
      {
        path: '/system-application-entry',
        component: '/system-management/system-application-entry',
        name: 'SystemApplicationEntry',
        meta: { title: '入驻申请', barFlag: true, icon: 'SystemApplicationEntry' }
      }
    ]
  }
]

export { serviceList }
